package com.usst.entity;


import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "comment")
public class Comment {

	@Id
	private Long commentId;
	
	private Long postId;
	
	private Long score;
	
	private String text;
	
	private String creationDate;
	
	private Long userId;
	
	public Comment() {
		
	}

	public Comment(Long commentId, Long postId, Long score, String text, String creationDate, Long userId) {
		super();
		this.commentId = commentId;
		this.postId = postId;
		this.score = score;
		this.text = text;
		this.creationDate = creationDate;
		this.userId = userId;
	}

	public Long getCommentId() {
		return commentId;
	}

	public void setCommentId(Long commentId) {
		this.commentId = commentId;
	}

	public Long getPostId() {
		return postId;
	}

	public void setPostId(Long postId) {
		this.postId = postId;
	}

	public Long getScore() {
		return score;
	}

	public void setScore(Long score) {
		this.score = score;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getCreationDate() {
		return creationDate;
	}

	public void setCreationDate(String creationDate) {
		this.creationDate = creationDate;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

}
